package com.weishu.core.service.impl;

import com.github.pagehelper.PageInfo;
import com.weishu.core.entity.CwCheckBatch;
import com.weishu.core.mapper.CwCheckBatchMapper;
import com.weishu.core.service.ICwCheckBatchService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 对账批次表 服务实现类
 * </p>
 *
 * @author zgx
 * @since 2021-10-19
 */
@Service
public class CwCheckBatchServiceImpl extends ServiceImpl<CwCheckBatchMapper, CwCheckBatch> implements ICwCheckBatchService {


    @Autowired
    private CwCheckBatchMapper cwCheckBatchMapper;

    /**
     * 对账批次查询
     * @param cwCheckBatch  对账批次信息
     * @return
     */
    @Override
    public PageInfo<CwCheckBatch> queryList(CwCheckBatch cwCheckBatch) {
        List<CwCheckBatch> list = cwCheckBatchMapper.queryList(cwCheckBatch);
        PageInfo<CwCheckBatch> pageInfo = new PageInfo<>(list);
        return pageInfo;
    }
}
